<template>
  <div
    class="ball"
    @click="$emit('click')"
  >
    <div class="ball-info">
      <p>{{ name }}</p>
      <p>{{ description }}</p>
    </div>
  </div>
</template>

<script>
export default {
  emits: ['click'],
  props: {
    name: String,
    description: String
  }
}
</script>

<style lang="scss" scoped>
.ball {
  z-index: 2;
  cursor: pointer;
  width: 165px;
  height: 165px;
  font-size: 12px;
  overflow: hidden;
  border-radius: 50%;
  background-image: url(../../../../assets/images/bg.gif);
  background-size: 400px;
  background-position: center center;
  box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;

  &:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
  }

  .ball-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    color: white;
    font-size: 15px;
  }
}
</style>
